package com.pactera.madp.cp.common.enums.sync;

import com.pactera.madp.cp.service.sync.*;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 人力资源同步服务类型
 */
@Getter
@AllArgsConstructor
public enum HrServiceEnum {

    ORG("org", SyncOrgInfoService.class, HrOrgSyncBusinessService.class, -1),
    PSN("psn", SyncPsnInfoService.class, HrPsnSyncBusinessService.class, 5),
    MOBILE("mobile", SyncMobileInfoService.class, HrPsnSyncBusinessService.class, 5),
    JOB("job", SyncJobInfoService.class, HrPsnSyncBusinessService.class, 5),
    QUALIF("qualif", SyncQualifInfoService.class, HrPsnSyncBusinessService.class, 5),
    POST("post", SyncPostInfoService.class, null, -1),
    BUILD("build", SyncBuildInfoService.class, null, -1),
    CODE_SET("code_set", SyncSysCodeSetInfoService.class, null, -1),
    CODE_ITEM("code_item", SyncSysCodeItemInfoService.class, null, -1);

    // 人力资源子类型
    private String subType;
    // 同步数据服务类型
    private Class serviceType;
    // 同步业务服务类型
    private Class businessServiceType;
    // 同步业务执行触发阀值
    private int syncThreshold;

}
